//
// Created by bxw57 on 2024/4/22.
//

#include "Test.h"
#include <fstream>
#include <iostream>
using namespace std;

void Test::readFile() {
    ofstream ofs;
    ofs.open("test.txt", ios::out | ios::app);
    ofs << "hello world1" << endl;
    ofs << "hello world2" << endl;
    ofs << "hello world3" << endl;
    ofs << "hello world4" << endl;
    ofs.close();
    cout << "write successfully" << endl;
}
